home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks '96 / MenuMadness / Source / C Source / QDUtils.h < prev   
Encoding:
Text File  |  1996-06-21  |  1.6 KB  |  83 lines  |  [TEXT/CWIE]

  1.  
  2.  
  3.  
  4.  
  5.  
  6. void SaveColors(RGBColor    *saveFore, RGBColor    *saveBack);
  7.  
  8. void RestoreColors(RGBColor    *saveFore, RGBColor    *saveBack);
  9.  
  10.  
  11. Boolean Rect1IsInRect2(Rect        *r1, Rect    *r2);
  12.  
  13. OSErr PlotSmallMenuIcon(Point    p, short iconID, short transform);
  14.  
  15. OSErr PlotSmallIcon(Point    p, short iconID);
  16.  
  17. void SetRGBColor(    RGBColor *rgb, 
  18.                     unsigned short r,unsigned short g,unsigned short b);
  19.  
  20. Point        GetWindowLoc(WindowPtr    theWindow);
  21.  
  22. void        OffsetPt(Point *p, short dh, short dv);
  23.  
  24. short         GetGDDepth(GDHandle    gd);
  25.  
  26. short         GetGDMode(GDHandle    gd);
  27.  
  28. short        MaxDepth(GDHandle    gd);
  29.  
  30. Point        CentreOfRect(Rect r);
  31.  
  32. void        LocalToGlobalRect(Rect * r);
  33.  
  34. void         GlobalToLocalRect(Rect * r);
  35.  
  36. short        WindowToDepth(WindowPtr    theWindow);
  37.  
  38.  
  39. Boolean        IsColourPort(CGrafPtr port);
  40.  
  41. void        MafInsetRect(Rect *r, short hInset, short vInset);
  42.  
  43.  
  44. void        MafOffsetRect(Rect *r, short hOffset, short vOffset);
  45.  
  46. Boolean        MafPtInRect(Point    p, Rect *r);
  47.  
  48. void        MafSetRect(Rect    *r, short left, short top, short right, short bottom);
  49.  
  50. void        ZeroRect(Rect*    r);
  51.  
  52. void         CentreRect(Rect    *subRect, Rect masterRect);
  53.  
  54.  
  55. void        HiliteRect(Rect    *r);
  56.  
  57. void         HiliteRgn(RgnHandle    rgn);
  58.  
  59.  
  60. short        RWidth(Rect    r);
  61.  
  62. short        RHeight(Rect r);
  63.  
  64. void         SetRGBBackColor(unsigned short r,unsigned short g,unsigned short b);
  65.  
  66. void         SetRGBForeColor(unsigned short r,unsigned short g,unsigned short b);
  67.  
  68. void         QDNormal(void);
  69.  
  70. GDHandle GetCurrentGD(Point    loc);
  71.  
  72. void DisposeIfGWorld(GWorldPtr    *gw);
  73.  
  74. enum{kAlignRectLeft = 1,kAlignRectTop = 2, kAlignRectRight = 4, kAlignRectBottom = 8};
  75.  
  76. void    AlignRect(Rect    *r1, Rect    r2, short alignCode);
  77.  
  78.  
  79. void    LocalZoom(Rect    r1, Rect    r2);
  80.  
  81.  
  82.  
  83.